-- GENERATED SPELL FOR [Onslaught Death Knight] --


function spell0_27367(pUnit, Event) --@Blood Presence,Self--
pUnit:FullCastSpellOnTarget(50689,pUnit)
pUnit:RegisterEvent('Sorts_27367', 575, 1)
end

function spell1_27367(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27367', 12000, 1)
end

function Sorts_27367(pUnit, Event)
local choix_sorts_27367 = math.random(0, 1)
if choix_sorts_27367 == 0 then
pUnit:RegisterEvent('spell0_27367', 1, 1)
end
if choix_sorts_27367 == 1 then
pUnit:RegisterEvent('spell1_27367', 1, 1)
end
end

function mob27367_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27367', math.random(1500, 3000), 1)
end

function mob27367_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27367_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27367_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27367, 1, 'mob27367_Action')
RegisterUnitEvent(27367, 2, 'mob27367_Leave')
RegisterUnitEvent(27367, 3, 'mob27367_Kill')
RegisterUnitEvent(27367, 4, 'mob27367_Die')
